same value

parseDateTime

protected java.util.Date parseDateTime(java.text.SimpleDateFormat formatter)
                                throws java.text.ParseException
parse the date in the layout based on the specific pattern and return a date

Returns:
Date
java.text.ParseException

formatDateTime

protected java.lang.String formatDateTime(java.text.SimpleDateFormat formatter,
                                          java.util.Date date)
                                   throws java.text.ParseException
return string representation of the date provided in the parameters

Returns:
String
java.text.ParseException

getDateTime

public java.util.Date getDateTime()
                           throws java.lang.NumberFormatException,
                                  java.text.ParseException
get date/time

Returns:
Date
java.lang.NumberFormatException
java.text.ParseException

getDefaultOutputPattern

protected java.lang.String getDefaultOutputPattern()
get default input pattern (pattern used in the business format) This pattern is applicable only when user haven't specified the corresponding pattern in the GUI

Returns:
String value by default returns MM/dd/yyyy

getDefaultInputPattern

protected java.lang.String getDefaultInputPattern()
get default output pattern (pattern in which the date is going to be presented in XML) This pattern is applicable only when user haven't specified the corresponding pattern in the GUI

Returns:
String value by default returns MM/dd/yyyy

CredibleXML
v1.5

Submit a bug or feature

CredibleXML is a trademark or registered trademark of Crediware L.L.C. in the US and other countries.
Copyright 2001-2002 Crediware L.L.C. All Rights Reserved.
DataFieldDescription (CredibleXML 1.5 Base Framework Specification)
CredibleXML
v1.5

com.crediware.crediblexml.coredef
Class DataFieldDescription

java.lang.Object
  |
  +--com.crediware.crediblexml.coredef.DataElement
        |
        +--com.crediware.crediblexml.coredef.DataField
              |
              +--com.crediware.crediblexml.coredef.DataLayoutField
                    |
                    +--com.crediware.crediblexml.coredef.DataFieldDescription
All Implemented Interfaces:
IXMLPersistable

public class DataFieldDescription
extends DataLayoutField

Copyright (c) 2001-2002 Crediware LLC. Purpose: This class incapsulate description field behavior for corresponding document element defined in the GUI. Returned by data accessor method generated by GUI tool.


Constructor Summary
DataFieldDescription(DataSegment container, MetaData metaData, IExternalDataProvider dataProvider, java.lang.String value)
          constructor creates data element with specified parameters
 
Method Summary
protected  org.xml.sax.Attributes getAttributesForElement()
          get the attributes when saving this fragment to XML as a separate element by default returns empty attribute
 java.lang.String getDescription()
          get description of the field value from the external source If section is null, assume the value doesn't have a description
 void saveFragmentAsAttribute(org.xml.sax.helpers.AttributesImpl attr, boolean formatted)
          save the data of this fragment to XML as an attribute of the container element
 
Methods inherited from class com.crediware.crediblexml.coredef.DataLayoutField
getFieldMetaData, getXMLPresentmentType, isVisibleInXML
 
Methods inherited from class com.crediware.crediblexml.coredef.DataField
getFormattedValue, getLexicalValue, getValue, isElement, populateDataForElement, saveFragmentAsElement, setValue, toString
 
Methods inherited from class com.crediware.crediblexml.coredef.DataElement
getDataProvider, getEmptyAttribute, getMetaData, getName, getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataFieldDescription

public DataFieldDescription(DataSegment container,
                            MetaData metaData,
                            IExternalDataProvider dataProvider,
                            java.lang.String value)
constructor creates data element with specified parameters

Method Detail

getDescription

public java.lang.String getDescription()
                                throws ResourceUnavailableException
get description of the field value from the external source If section is null, assume the value doesn't have a description

Returns:
String
ResourceUnavailableException

getAttributesForElement

protected org.xml.sax.Attributes getAttributesForElement()
                                                  throws org.xml.sax.SAXException
get the attributes when saving this fragment to XML as a separate element by default returns empty attribute

Overrides:
getAttributesForElement in class DataField
Returns:
Attributes
org.xml.sax.SAXException

saveFragmentAsAttribute

public void saveFragmentAsAttribute(org.xml.sax.helpers.AttributesImpl attr,
                                    boolean formatted)
                             throws org.xml.sax.SAXException
save the data of this fragment to XML as an attribute of the container element

Specified by:
saveFragmentAsAttribute in